package com.lwbldy.modules.student.service.impl;

import com.lwbldy.modules.student.domain.ChargesType;
import com.lwbldy.modules.student.mapper.ChargesTypeDao;
import com.lwbldy.modules.student.service.ChargesTypeService;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;

/**
 * 收费项目 service 实现
 * @author lwb
 * @email lwbldy@163.com
 * @date 2022-06-13 18:23:45
 */
@Service("chargesTypeService")
public class ChargesTypeServiceImpl implements ChargesTypeService {

    @Autowired
    ChargesTypeDao chargesTypeDao;

    @Override
    public int save(ChargesType t) {
        return chargesTypeDao.save(t);
    }

    @Override
    public int saveBatch(List<ChargesType> list) {
        return chargesTypeDao.saveBatch(list);
    }

    @Override
    public int update(ChargesType t) {
        return chargesTypeDao.update(t);
    }

    @Override
    public int delete(Object id) {
        return chargesTypeDao.delete(id);
    }

    @Override
    public int deleteBatch(Object[] ids) {
        return chargesTypeDao.deleteBatch(ids);
    }

    @Override
    public ChargesType queryObject(Object id) {
        return chargesTypeDao.queryObject(id);
    }

    @Override
    public List<ChargesType> queryList(Map<String, Object> map) {
        return chargesTypeDao.queryList(map);
    }

    @Override
    public int queryTotalByMap(Map<String, Object> map) {
        return chargesTypeDao.queryTotalByMap(map);
    }

    @Override
    public int queryTotal() {
        return chargesTypeDao.queryTotal();
    }

    @Override
    public List<ChargesType> queryAll() {
        return chargesTypeDao.queryAll();
    }

    @Override
    public ChargesType queryByCode(String code,Integer schoolId) {
        return chargesTypeDao.queryByCode(code,schoolId);
    }

}
